﻿<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
      <title>SkipTableBase&lt;TValue&gt; 类
 | Fantasy.Net API Reference </title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta name="title" content="SkipTableBase&lt;TValue&gt; 类
 | Fantasy.Net API Reference ">
      
      <link rel="icon" href="../favicon.ico">
      <link rel="stylesheet" href="../public/docfx.min.css">
      <link rel="stylesheet" href="../public/main.css">
      <meta name="docfx:navrel" content="../toc.html">
      <meta name="docfx:tocrel" content="toc.html">
      
      <meta name="docfx:rel" content="../">
      
      
      
  </head>

  <script type="module">
    import options from './../public/main.js'
    import { init } from './../public/docfx.min.js'
    init(options)
  </script>

  <script>
    const theme = localStorage.getItem('theme') || 'auto'
    document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
  </script>

  <body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
    <header class="bg-body border-bottom">
      <nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
        <div class="container-xxl flex-nowrap">
          <a class="navbar-brand" href="../index.html">
            <img id="logo" class="svg" src="../logo.svg" alt="Fantasy.Net">
            Fantasy.Net
          </a>
          <button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
            <i class="bi bi-three-dots"></i>
          </button>
          <div class="collapse navbar-collapse" id="navpanel">
            <div id="navbar">
              <form class="search" role="search" id="search">
                <i class="bi bi-search"></i>
                <input class="form-control" id="search-query" type="search" disabled="" placeholder="搜索" autocomplete="off" aria-label="Search">
              </form>
            </div>
          </div>
        </div>
      </nav>
    </header>

    <main class="container-xxl">
      <div class="toc-offcanvas">
        <div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
          <div class="offcanvas-header">
            <h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
            <button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
          </div>
          <div class="offcanvas-body">
            <nav class="toc" id="toc"></nav>
          </div>
        </div>
      </div>

      <div class="content">
        <div class="actionbar">
          <button class="btn btn-lg border-0 d-md-none" style="margin-top: -.65em; margin-left: -.8em" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
            <i class="bi bi-list"></i>
          </button>

          <nav id="breadcrumb"></nav>
        </div>

        <article data-uid="Fantasy.DataStructure.SkipTableBase`1">



  <h1 id="Fantasy_DataStructure_SkipTableBase_1" data-uid="Fantasy.DataStructure.SkipTableBase`1" class="text-break">
    SkipTableBase&lt;TValue&gt; 类
  
  </h1>

  <div class="facts text-secondary">
    <dl><dt>命名空间</dt><dd><a class="xref" href="Fantasy.html">Fantasy</a>.<a class="xref" href="Fantasy.DataStructure.html">DataStructure</a></dd></dl>
  <dl><dt>程序集</dt><dd>Fantasy.Net.dll</dd></dl>
  </div>

  <div class="markdown summary"><p>抽象的跳表基类，提供跳表的基本功能和操作。</p>
</div>
  <div class="markdown conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class SkipTableBase&lt;TValue&gt; : IEnumerable&lt;SkipTableNode&lt;TValue&gt;&gt;, IEnumerable</code></pre>
  </div>



  <h4 class="section">类型参数</h4>
  <dl class="parameters">
    <dt><code>TValue</code></dt>
    <dd><p>跳表中存储的值的类型。</p>
</dd>
  </dl>

  <dl class="typelist inheritance">
    <dt>继承</dt>
    <dd>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
      <div><span class="xref">SkipTableBase&lt;TValue&gt;</span></div>
    </dd>
  </dl>

  <dl class="typelist implements">
    <dt>实现</dt>
    <dd>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="Fantasy.DataStructure.SkipTableNode-1.html">SkipTableNode</a>&lt;TValue&gt;&gt;</div>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
    </dd>
  </dl>

  <dl class="typelist derived">
    <dt>Derived</dt>
    <dd>
      <div><a class="xref" href="Fantasy.DataStructure.SkipTableDesc-1.html">SkipTableDesc&lt;TValue&gt;</a></div>
      <div><a class="xref" href="Fantasy.DataStructure.SkipTable-1.html">SkipTable&lt;TValue&gt;</a></div>
    </dd>
  </dl>

  <dl class="typelist derived">
    <dt>继承成员</dt>
    <dd>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a>
    </div>
  </dd></dl>

  <dl class="typelist extensionMethods">
    <dt>扩展方法</dt>
    <dd>
  <div>
      <a class="xref" href="Fantasy.Helper.JsonHelper.html#Fantasy_Helper_JsonHelper_ToJson__1___0_">JsonHelper.ToJson&lt;T&gt;(T)</a>
  </div>
  </dd></dl>





  <h2 class="section" id="constructors">构造函数
</h2>


  <a id="Fantasy_DataStructure_SkipTableBase_1__ctor_" data-uid="Fantasy.DataStructure.SkipTableBase`1.#ctor*"></a>

  <h3 id="Fantasy_DataStructure_SkipTableBase_1__ctor_System_Int32_" data-uid="Fantasy.DataStructure.SkipTableBase`1.#ctor(System.Int32)">
  SkipTableBase(int)
  
  </h3>

  <div class="markdown level1 summary"><p>初始化一个新的跳表实例。</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected SkipTableBase(int maxLayer = 8)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>maxLayer</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>跳表的最大层数，默认为 8。</p>
</dd>
  </dl>












  <h2 class="section" id="fields">字段
</h2>



  <h3 id="Fantasy_DataStructure_SkipTableBase_1_AntiFindStack" data-uid="Fantasy.DataStructure.SkipTableBase`1.AntiFindStack">
  AntiFindStack
  
  </h3>

  <div class="markdown level1 summary"><p>用于辅助反向查找的栈</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected readonly Stack&lt;SkipTableNode&lt;TValue&gt;&gt; AntiFindStack</code></pre>
  </div>




  <h4 class="section">字段值</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.stack-1">Stack</a>&lt;<a class="xref" href="Fantasy.DataStructure.SkipTableNode-1.html">SkipTableNode</a>&lt;TValue&gt;&gt;</dt>
    <dd></dd>
  </dl>










  <h3 id="Fantasy_DataStructure_SkipTableBase_1_BottomHeader" data-uid="Fantasy.DataStructure.SkipTableBase`1.BottomHeader">
  BottomHeader
  
  </h3>

  <div class="markdown level1 summary"><p>跳表的底部头节点</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public SkipTableNode&lt;TValue&gt; BottomHeader</code></pre>
  </div>




  <h4 class="section">字段值</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Fantasy.DataStructure.SkipTableNode-1.html">SkipTableNode</a>&lt;TValue&gt;</dt>
    <dd></dd>
  </dl>










  <h3 id="Fantasy_DataStructure_SkipTableBase_1_MaxLayer" data-uid="Fantasy.DataStructure.SkipTableBase`1.MaxLayer">
  MaxLayer
  
  </h3>

  <div class="markdown level1 summary"><p>跳表的最大层数</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public readonly int MaxLayer</code></pre>
  </div>




  <h4 class="section">字段值</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd></dd>
  </dl>










  <h3 id="Fantasy_DataStructure_SkipTableBase_1_Node" data-uid="Fantasy.DataStructure.SkipTableBase`1.Node">
  Node
  
  </h3>

  <div class="markdown level1 summary"><p>存储跳表节点的字典</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected readonly Dictionary&lt;long, SkipTableNode&lt;TValue&gt;&gt; Node</code></pre>
  </div>




  <h4 class="section">字段值</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2">Dictionary</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a>, <a class="xref" href="Fantasy.DataStructure.SkipTableNode-1.html">SkipTableNode</a>&lt;TValue&gt;&gt;</dt>
    <dd></dd>
  </dl>










  <h3 id="Fantasy_DataStructure_SkipTableBase_1_Random" data-uid="Fantasy.DataStructure.SkipTableBase`1.Random">
  Random
  
  </h3>

  <div class="markdown level1 summary"><p>用于生成随机数的随机数生成器</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected readonly Random Random</code></pre>
  </div>




  <h4 class="section">字段值</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.random">Random</a></dt>
    <dd></dd>
  </dl>










  <h3 id="Fantasy_DataStructure_SkipTableBase_1_TopHeader" data-uid="Fantasy.DataStructure.SkipTableBase`1.TopHeader">
  TopHeader
  
  </h3>

  <div class="markdown level1 summary"><p>跳表的顶部头节点</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public readonly SkipTableNode&lt;TValue&gt; TopHeader</code></pre>
  </div>




  <h4 class="section">字段值</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Fantasy.DataStructure.SkipTableNode-1.html">SkipTableNode</a>&lt;TValue&gt;</dt>
    <dd></dd>
  </dl>









  <h2 class="section" id="properties">属性
</h2>


  <a id="Fantasy_DataStructure_SkipTableBase_1_Count_" data-uid="Fantasy.DataStructure.SkipTableBase`1.Count*"></a>

  <h3 id="Fantasy_DataStructure_SkipTableBase_1_Count" data-uid="Fantasy.DataStructure.SkipTableBase`1.Count">
  Count
  
  </h3>

  <div class="markdown level1 summary"><p>跳表中节点的数量，使用了 Node 字典的计数</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int Count { get; }</code></pre>
  </div>





  <h4 class="section">属性值</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd></dd>
  </dl>








  <a id="Fantasy_DataStructure_SkipTableBase_1_Item_" data-uid="Fantasy.DataStructure.SkipTableBase`1.Item*"></a>

  <h3 id="Fantasy_DataStructure_SkipTableBase_1_Item_System_Int64_" data-uid="Fantasy.DataStructure.SkipTableBase`1.Item(System.Int64)">
  this[long]
  
  </h3>

  <div class="markdown level1 summary"><p>获取指定键的节点的值，若不存在则返回默认值。</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public TValue this[long key] { get; }</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></dt>
    <dd><p>要查找的键。</p>
</dd>
  </dl>




  <h4 class="section">属性值</h4>
  <dl class="parameters">
    <dt><span class="xref">TValue</span></dt>
    <dd></dd>
  </dl>








  <h2 class="section" id="methods">方法
</h2>


  <a id="Fantasy_DataStructure_SkipTableBase_1_Add_" data-uid="Fantasy.DataStructure.SkipTableBase`1.Add*"></a>

  <h3 id="Fantasy_DataStructure_SkipTableBase_1_Add_System_Int64_System_Int64_System_Int64__0_" data-uid="Fantasy.DataStructure.SkipTableBase`1.Add(System.Int64,System.Int64,System.Int64,`0)">
  Add(long, long, long, TValue)
  
  </h3>

  <div class="markdown level1 summary"><p>向跳表中添加节点。</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract void Add(long sortKey, long viceKey, long key, TValue value)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>sortKey</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></dt>
    <dd><p>节点的排序键。</p>
</dd>
    <dt><code>viceKey</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></dt>
    <dd><p>节点的副键。</p>
</dd>
    <dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></dt>
    <dd><p>节点的键。</p>
</dd>
    <dt><code>value</code> <span class="xref">TValue</span></dt>
    <dd><p>节点的值。</p>
</dd>
  </dl>












  <a id="Fantasy_DataStructure_SkipTableBase_1_AntiFind_" data-uid="Fantasy.DataStructure.SkipTableBase`1.AntiFind*"></a>

  <h3 id="Fantasy_DataStructure_SkipTableBase_1_AntiFind_System_Int32_System_Int32_Fantasy_DataStructure_ListPool_Fantasy_DataStructure_SkipTableNode__0___" data-uid="Fantasy.DataStructure.SkipTableBase`1.AntiFind(System.Int32,System.Int32,Fantasy.DataStructure.ListPool{Fantasy.DataStructure.SkipTableNode{`0}})">
  AntiFind(int, int, ListPool&lt;SkipTableNode&lt;TValue&gt;&gt;)
  
  </h3>

  <div class="markdown level1 summary"><p>在跳表中进行反向查找节点，返回从结束位置到起始位置的节点列表。</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void AntiFind(int start, int end, ListPool&lt;SkipTableNode&lt;TValue&gt;&gt; list)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>start</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>结束位置的排名。</p>
</dd>
    <dt><code>end</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>起始位置的排名。</p>
</dd>
    <dt><code>list</code> <a class="xref" href="Fantasy.DataStructure.ListPool-1.html">ListPool</a>&lt;<a class="xref" href="Fantasy.DataStructure.SkipTableNode-1.html">SkipTableNode</a>&lt;TValue&gt;&gt;</dt>
    <dd><p>用于存储节点列表的 <a class="xref" href="Fantasy.DataStructure.ListPool-1.html">ListPool&lt;T&gt;</a> 实例。</p>
</dd>
  </dl>












  <a id="Fantasy_DataStructure_SkipTableBase_1_Find_" data-uid="Fantasy.DataStructure.SkipTableBase`1.Find*"></a>

  <h3 id="Fantasy_DataStructure_SkipTableBase_1_Find_System_Int32_System_Int32_Fantasy_DataStructure_ListPool_Fantasy_DataStructure_SkipTableNode__0___" data-uid="Fantasy.DataStructure.SkipTableBase`1.Find(System.Int32,System.Int32,Fantasy.DataStructure.ListPool{Fantasy.DataStructure.SkipTableNode{`0}})">
  Find(int, int, ListPool&lt;SkipTableNode&lt;TValue&gt;&gt;)
  
  </h3>

  <div class="markdown level1 summary"><p>在跳表中查找节点，返回从起始位置到结束位置的节点列表。</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void Find(int start, int end, ListPool&lt;SkipTableNode&lt;TValue&gt;&gt; list)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>start</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>起始位置的排名。</p>
</dd>
    <dt><code>end</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>结束位置的排名。</p>
</dd>
    <dt><code>list</code> <a class="xref" href="Fantasy.DataStructure.ListPool-1.html">ListPool</a>&lt;<a class="xref" href="Fantasy.DataStructure.SkipTableNode-1.html">SkipTableNode</a>&lt;TValue&gt;&gt;</dt>
    <dd><p>用于存储节点列表的 <a class="xref" href="Fantasy.DataStructure.ListPool-1.html">ListPool&lt;T&gt;</a> 实例。</p>
</dd>
  </dl>












  <a id="Fantasy_DataStructure_SkipTableBase_1_GetAntiRanking_" data-uid="Fantasy.DataStructure.SkipTableBase`1.GetAntiRanking*"></a>

  <h3 id="Fantasy_DataStructure_SkipTableBase_1_GetAntiRanking_System_Int64_" data-uid="Fantasy.DataStructure.SkipTableBase`1.GetAntiRanking(System.Int64)">
  GetAntiRanking(long)
  
  </h3>

  <div class="markdown level1 summary"><p>获取指定键的反向排名，即在比该键更大的节点中的排名。</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int GetAntiRanking(long key)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></dt>
    <dd><p>要查找的键。</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>反向排名。</p>
</dd>
  </dl>











  <a id="Fantasy_DataStructure_SkipTableBase_1_GetEnumerator_" data-uid="Fantasy.DataStructure.SkipTableBase`1.GetEnumerator*"></a>

  <h3 id="Fantasy_DataStructure_SkipTableBase_1_GetEnumerator" data-uid="Fantasy.DataStructure.SkipTableBase`1.GetEnumerator">
  GetEnumerator()
  
  </h3>

  <div class="markdown level1 summary"><p>返回一个枚举器，用于遍历跳表中的节点。</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public IEnumerator&lt;SkipTableNode&lt;TValue&gt;&gt; GetEnumerator()</code></pre>
  </div>


  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1">IEnumerator</a>&lt;<a class="xref" href="Fantasy.DataStructure.SkipTableNode-1.html">SkipTableNode</a>&lt;TValue&gt;&gt;</dt>
    <dd><p>一个可用于遍历跳表节点的枚举器。</p>
</dd>
  </dl>











  <a id="Fantasy_DataStructure_SkipTableBase_1_GetLastValue_" data-uid="Fantasy.DataStructure.SkipTableBase`1.GetLastValue*"></a>

  <h3 id="Fantasy_DataStructure_SkipTableBase_1_GetLastValue" data-uid="Fantasy.DataStructure.SkipTableBase`1.GetLastValue">
  GetLastValue()
  
  </h3>

  <div class="markdown level1 summary"><p>获取跳表中最后一个节点的值。</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public TValue GetLastValue()</code></pre>
  </div>


  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><span class="xref">TValue</span></dt>
    <dd><p>最后一个节点的值。</p>
</dd>
  </dl>











  <a id="Fantasy_DataStructure_SkipTableBase_1_GetRanking_" data-uid="Fantasy.DataStructure.SkipTableBase`1.GetRanking*"></a>

  <h3 id="Fantasy_DataStructure_SkipTableBase_1_GetRanking_System_Int64_" data-uid="Fantasy.DataStructure.SkipTableBase`1.GetRanking(System.Int64)">
  GetRanking(long)
  
  </h3>

  <div class="markdown level1 summary"><p>获取指定键的节点在跳表中的排名。</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int GetRanking(long key)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></dt>
    <dd><p>要查找的键。</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>节点的排名。</p>
</dd>
  </dl>











  <a id="Fantasy_DataStructure_SkipTableBase_1_Remove_" data-uid="Fantasy.DataStructure.SkipTableBase`1.Remove*"></a>

  <h3 id="Fantasy_DataStructure_SkipTableBase_1_Remove_System_Int64_" data-uid="Fantasy.DataStructure.SkipTableBase`1.Remove(System.Int64)">
  Remove(long)
  
  </h3>

  <div class="markdown level1 summary"><p>移除跳表中指定键的节点。</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool Remove(long key)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></dt>
    <dd><p>要移除的节点的键。</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>移除是否成功。</p>
</dd>
  </dl>











  <a id="Fantasy_DataStructure_SkipTableBase_1_Remove_" data-uid="Fantasy.DataStructure.SkipTableBase`1.Remove*"></a>

  <h3 id="Fantasy_DataStructure_SkipTableBase_1_Remove_System_Int64_System_Int64_System_Int64__0__" data-uid="Fantasy.DataStructure.SkipTableBase`1.Remove(System.Int64,System.Int64,System.Int64,`0@)">
  Remove(long, long, long, out TValue)
  
  </h3>

  <div class="markdown level1 summary"><p>从跳表中移除指定键的节点。</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract bool Remove(long sortKey, long viceKey, long key, out TValue value)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>sortKey</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></dt>
    <dd><p>节点的排序键。</p>
</dd>
    <dt><code>viceKey</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></dt>
    <dd><p>节点的副键。</p>
</dd>
    <dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></dt>
    <dd><p>节点的键。</p>
</dd>
    <dt><code>value</code> <span class="xref">TValue</span></dt>
    <dd><p>被移除的节点的值。</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>移除是否成功。</p>
</dd>
  </dl>











  <a id="Fantasy_DataStructure_SkipTableBase_1_TryGetNodeByKey_" data-uid="Fantasy.DataStructure.SkipTableBase`1.TryGetNodeByKey*"></a>

  <h3 id="Fantasy_DataStructure_SkipTableBase_1_TryGetNodeByKey_System_Int64_Fantasy_DataStructure_SkipTableNode__0___" data-uid="Fantasy.DataStructure.SkipTableBase`1.TryGetNodeByKey(System.Int64,Fantasy.DataStructure.SkipTableNode{`0}@)">
  TryGetNodeByKey(long, out SkipTableNode&lt;TValue&gt;)
  
  </h3>

  <div class="markdown level1 summary"><p>尝试通过键获取节点。</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool TryGetNodeByKey(long key, out SkipTableNode&lt;TValue&gt; node)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></dt>
    <dd><p>要查找的键。</p>
</dd>
    <dt><code>node</code> <a class="xref" href="Fantasy.DataStructure.SkipTableNode-1.html">SkipTableNode</a>&lt;TValue&gt;</dt>
    <dd><p>获取到的节点，如果键不存在则为 <code>null</code>。</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>是否成功获取节点。</p>
</dd>
  </dl>











  <a id="Fantasy_DataStructure_SkipTableBase_1_TryGetValueByKey_" data-uid="Fantasy.DataStructure.SkipTableBase`1.TryGetValueByKey*"></a>

  <h3 id="Fantasy_DataStructure_SkipTableBase_1_TryGetValueByKey_System_Int64__0__" data-uid="Fantasy.DataStructure.SkipTableBase`1.TryGetValueByKey(System.Int64,`0@)">
  TryGetValueByKey(long, out TValue)
  
  </h3>

  <div class="markdown level1 summary"><p>尝试通过键获取节点的值。</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool TryGetValueByKey(long key, out TValue value)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></dt>
    <dd><p>要查找的键。</p>
</dd>
    <dt><code>value</code> <span class="xref">TValue</span></dt>
    <dd><p>获取到的节点的值，如果键不存在则为默认值。</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>是否成功获取节点的值。</p>
</dd>
  </dl>












</article>


        
      </div>

      <div class="affix">
        <nav id="affix"></nav>
      </div>
    </main>

    <div class="container-xxl search-results" id="search-results"></div>

    <footer class="border-top">
      <div class="container-xxl">
        <div class="flex-fill">
          <span>Made with <a href="https://dotnet.github.io/docfx">docfx</a></span>
        </div>
      </div>
    </footer>
  </body>
</html>